package com.jihe.com;

import java.util.ArrayList;
import java.util.Collection;

public class BookTest {
    public static void main(String[] args) {
        Collection coll = new ArrayList();
        Book book = new Book("三国演义", "罗贯中", 24.3);
        Book book1 = new Book("水浒传", "施耐庵", 32.5);
        Book book2 = new Book("西游记","吴承恩",45.5);
        Book book3 = new Book("红楼梦","曹雪芹",123);

        coll.add(book);
        coll.add(book1);
        coll.add(book2);
        coll.add(book3);
        System.out.println(coll);
    }
}